package com.cjx.admin.feign.impl;

import com.cjx.admin.dto.AdminUserDTO;
import com.cjx.admin.feign.AdminUserFeign;
import com.cjx.common.api.CommonResult;
import org.springframework.stereotype.Component;

/**
*@Description adminUserFeign错误处理类
*@Verson v1.0.0
*@Author cjunxian
*@Date
*/
@Component
public class AdminUserFeignFallback implements AdminUserFeign {
    @Override
    public CommonResult<AdminUserDTO> getUserByUsername(String username) {
        return CommonResult.failed("获取用户信息失败！请联系管理员。");
    }
}
